/*
 * Created on 2022年6月21日
 *
 * Copyright(c) YuZhou Big Data Laboratory CO.,Ltd, 2022.  All rights reserved.
 *
 *******************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ******************************************************************************/
package org.pentaho.di.ui.dbdto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * restful api 接口统一的返回信息
 *
 * @author hs@yzbdl.ac.cn
 * @version 1.0
 * @date 2019/6/27 11:09
 */
public class ResponseBean implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 业务code
     */
    private String code;

    /**
     * 业务描述
     */
    private String msg;

    /**
     * 时间戳
     */
    private Date timestamp = new Date();

    /**
     * 业务数据
     */
    private List<CouldDriverDto> data;

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void appendMsg(String msg) {
        this.msg = new StringBuffer(this.msg).append(msg).toString();
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public List<CouldDriverDto> getData() {
        return data;
    }

    public void setData(List<CouldDriverDto> data) {
        this.data = data;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

}
